Optimal. Leaf size=66 \[ \frac{i d \text{PolyLog}\left (2,-e^{2 i (a+b x)}\right )}{2 b^2}-\frac{(c+d x) \log \left (1+e^{2 i (a+b x)}\right )}{b}+\frac{i (c+d x)^2}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0925894, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3719, 2190, 2279, 2391} \[ \frac{i d \text{PolyLog}\left (2,-e^{2 i (a+b x)}\right )}{2 b^2}-\frac{(c+d x) \log \left (1+e^{2 i (a+b x)}\right )}{b}+\frac{i (c+d x)^2}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3719
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int (c+d x) \tan (a+b x) \, dx &=\frac{i (c+d x)^2}{2 d}-2 i \int \frac{e^{2 i (a+b x)} (c+d x)}{1+e^{2 i (a+b x)}} \, dx\\ &=\frac{i (c+d x)^2}{2 d}-\frac{(c+d x) \log \left (1+e^{2 i (a+b x)}\right )}{b}+\frac{d \int \log \left (1+e^{2 i (a+b x)}\right ) \, dx}{b}\\ &=\frac{i (c+d x)^2}{2 d}-\frac{(c+d x) \log \left (1+e^{2 i (a+b x)}\right )}{b}-\frac{(i d) \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^{2 i (a+b x)}\right )}{2 b^2}\\ &=\frac{i (c+d x)^2}{2 d}-\frac{(c+d x) \log \left (1+e^{2 i (a+b x)}\right )}{b}+\frac{i d \text{Li}_2\left (-e^{2 i (a+b x)}\right )}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.0147743, size = 70, normalized size = 1.06 \[ \frac{i d \text{PolyLog}\left (2,-e^{2 i (a+b x)}\right )}{2 b^2}-\frac{c \log (\cos (a+b x))}{b}-\frac{d x \log \left (1+e^{2 i (a+b x)}\right )}{b}+\frac{1}{2} i d x^2 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.252, size = 123, normalized size = 1.9 \begin{align*}{\frac{i}{2}}d{x}^{2}-icx+2\,{\frac{c\ln \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) }{b}}-{\frac{c\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}+1 \right ) }{b}}+{\frac{2\,idax}{b}}+{\frac{id{a}^{2}}{{b}^{2}}}-{\frac{d\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}+1 \right ) x}{b}}+{\frac{{\frac{i}{2}}d{\it polylog} \left ( 2,-{{\rm e}^{2\,i \left ( bx+a \right ) }} \right ) }{{b}^{2}}}-2\,{\frac{ad\ln \left ({{\rm e}^{i \left ( bx+a \right ) }} \right ) }{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.72612, size = 154, normalized size = 2.33 \begin{align*} -\frac{-i \, b^{2} d x^{2} - 2 i \, b^{2} c x +{\left (2 i \, b d x + 2 i \, b c\right )} \arctan \left (\sin \left (2 \, b x + 2 \, a\right ), \cos \left (2 \, b x + 2 \, a\right ) + 1\right ) - i \, d{\rm Li}_2\left (-e^{\left (2 i \, b x + 2 i \, a\right )}\right ) +{\left (b d x + b c\right )} \log \left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} + 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )}{2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.571796, size = 837, normalized size = 12.68 \begin{align*} \frac{-i \, d{\rm Li}_2\left (i \, \cos \left (b x + a\right ) + \sin \left (b x + a\right )\right ) + i \, d{\rm Li}_2\left (i \, \cos \left (b x + a\right ) - \sin \left (b x + a\right )\right ) + i \, d{\rm Li}_2\left (-i \, \cos \left (b x + a\right ) + \sin \left (b x + a\right )\right ) - i \, d{\rm Li}_2\left (-i \, \cos \left (b x + a\right ) - \sin \left (b x + a\right )\right ) -{\left (b c - a d\right )} \log \left (\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right ) + i\right ) -{\left (b c - a d\right )} \log \left (\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right ) + i\right ) -{\left (b d x + a d\right )} \log \left (i \, \cos \left (b x + a\right ) + \sin \left (b x + a\right ) + 1\right ) -{\left (b d x + a d\right )} \log \left (i \, \cos \left (b x + a\right ) - \sin \left (b x + a\right ) + 1\right ) -{\left (b d x + a d\right )} \log \left (-i \, \cos \left (b x + a\right ) + \sin \left (b x + a\right ) + 1\right ) -{\left (b d x + a d\right )} \log \left (-i \, \cos \left (b x + a\right ) - \sin \left (b x + a\right ) + 1\right ) -{\left (b c - a d\right )} \log \left (-\cos \left (b x + a\right ) + i \, \sin \left (b x + a\right ) + i\right ) -{\left (b c - a d\right )} \log \left (-\cos \left (b x + a\right ) - i \, \sin \left (b x + a\right ) + i\right )}{2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (c + d x\right ) \sin{\left (a + b x \right )} \sec{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (d x + c\right )} \sec \left (b x + a\right ) \sin \left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]